package com.qfedu.vhr.controller;

import com.qfedu.vhr.framework.entity.vo.MenuVO;
import com.qfedu.vhr.framework.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author baize
 * @date 2023/1/9
 * @site www.qfedu.com
 */
@RestController
@RequestMapping("/menus")
public class MenuController {

    @Autowired
    IMenuService menuService;

    @GetMapping("/all")
    public List<MenuVO> getAllMenusByHrId() {
        return menuService.getAllMenusByHrId();
    }
}
